package com.jiepuxun.demo.influxDB;

import io.github.betacatcode.influx.InfluxDBBaseMapper;
import io.github.betacatcode.influx.ano.Insert;
import io.github.betacatcode.influx.ano.Select;

import java.util.List;

public interface MonitorDataMapper extends InfluxDBBaseMapper {

    @Select(value = "select * from test.autogen.monitor_data",resultType = MonitorData.class)
    List<MonitorData> selectAll();

    @Insert
    void insertOne(MonitorData data);
}
